package com.jly.controller;

import com.jly.service.MissileService;
import com.jly.vos.GuidanceDataVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liwenhao
 * @date 2022/3/24 9:44
 * @description
 */
@RestController
@RequestMapping("/missile")
public class MissileController {

    @Qualifier("missileServiceConsulImpl")
    @Autowired
    private MissileService missileService;

    @PostMapping("/fire")
    public Object fire(@RequestBody GuidanceDataVo request){
        return missileService.fire(request);
    }

}
